<template>
    <div>
        <div class="centered-container">
            <img
                src="@/assets/QRcode.png"
                alt="图片"
                class="centered-image" />
            <p class="res-text">购买失败</p>
            <div class="tips">亲，同一时间下单人数过多，建议您看看其他宝贝，或稍后再试</div>
        </div>
        <div
            class="btn"
            @click="goNext">
            我知道了
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {};
    },
    methods: {
        goNext() {
            console.log('我知道了');
        },
    },
};
</script>

<style scoped lang="scss">
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* 如果是整个页面，需要父级有高度，或者指定具体高度 */
    margin-top: 80px;
    padding: 0 45px;
}

.centered-image {
    height: auto;
    width: 200px;
}
.res-text {
    font-size: 30px;
    font-weight: bold;
    line-height: 40px;
    margin: 20px 0;
}
.tips {
    text-align: center;
    color: gray;
    font-size: 18px;
}
.btn {
    color: #fff;
    margin: 50px 30px;
    line-height: 50px;
    border-radius: 25px;
    background-image: linear-gradient(to right, #ef9135, #eb672b);
}
</style>
